package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiMonitoringMissionConfigMapper;
import com.ruoyi.slope.ai.domain.SlopeAiMonitoringMissionConfig;
import com.ruoyi.slope.ai.service.ISlopeAiMonitoringMissionConfigService;

/**
 * 监测任务配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiMonitoringMissionConfigServiceImpl implements ISlopeAiMonitoringMissionConfigService 
{
    @Autowired
    private SlopeAiMonitoringMissionConfigMapper slopeAiMonitoringMissionConfigMapper;

    /**
     * 查询监测任务配置
     * 
     * @param missionId 监测任务配置主键
     * @return 监测任务配置
     */
    @Override
    public SlopeAiMonitoringMissionConfig selectSlopeAiMonitoringMissionConfigByMissionId(String missionId)
    {
        return slopeAiMonitoringMissionConfigMapper.selectSlopeAiMonitoringMissionConfigByMissionId(missionId);
    }

    /**
     * 查询监测任务配置列表
     * 
     * @param slopeAiMonitoringMissionConfig 监测任务配置
     * @return 监测任务配置
     */
    @Override
    public List<SlopeAiMonitoringMissionConfig> selectSlopeAiMonitoringMissionConfigList(SlopeAiMonitoringMissionConfig slopeAiMonitoringMissionConfig)
    {
        return slopeAiMonitoringMissionConfigMapper.selectSlopeAiMonitoringMissionConfigList(slopeAiMonitoringMissionConfig);
    }

    /**
     * 新增监测任务配置
     * 
     * @param slopeAiMonitoringMissionConfig 监测任务配置
     * @return 结果
     */
    @Override
    public int insertSlopeAiMonitoringMissionConfig(SlopeAiMonitoringMissionConfig slopeAiMonitoringMissionConfig)
    {
        return slopeAiMonitoringMissionConfigMapper.insertSlopeAiMonitoringMissionConfig(slopeAiMonitoringMissionConfig);
    }

    /**
     * 修改监测任务配置
     * 
     * @param slopeAiMonitoringMissionConfig 监测任务配置
     * @return 结果
     */
    @Override
    public int updateSlopeAiMonitoringMissionConfig(SlopeAiMonitoringMissionConfig slopeAiMonitoringMissionConfig)
    {
        return slopeAiMonitoringMissionConfigMapper.updateSlopeAiMonitoringMissionConfig(slopeAiMonitoringMissionConfig);
    }

    /**
     * 批量删除监测任务配置
     * 
     * @param missionIds 需要删除的监测任务配置主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiMonitoringMissionConfigByMissionIds(String[] missionIds)
    {
        return slopeAiMonitoringMissionConfigMapper.deleteSlopeAiMonitoringMissionConfigByMissionIds(missionIds);
    }

    /**
     * 删除监测任务配置信息
     * 
     * @param missionId 监测任务配置主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiMonitoringMissionConfigByMissionId(String missionId)
    {
        return slopeAiMonitoringMissionConfigMapper.deleteSlopeAiMonitoringMissionConfigByMissionId(missionId);
    }
}
